package com.imooc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;


@EnableAsync // 开启异步任务
@EnableRetry // 开启任务重试 springRetry
@SpringBootApplication
@EnableDiscoveryClient // 开启注册中心的服务注册和发现功能
@MapperScan("com.imooc.mapper")
@EnableFeignClients("com.imooc.api.feign")
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
